import request from "@/utils/request";

export function shouyer() {
  return request({
    url: "admin/dashboard/index",
    method: "get",
  });
}

// /api/admin/map/index

export function dituqw() {
  return request({
    url: "/admin/map/index",
    method: "get",
  });
}

//   公告
// /api/admin/article/list

export function gonggaolei(params) {
  return request({
    url: "/admin/article/list",
    method: "get",
    params,
  });
}

//   /api/admin/article/category/list

export function gonggaomc() {
  return request({
    url: "/admin/article/category/list",
    method: "get",
  });
}
// 公告删除
// /api/admin/article/del
export function gonggaosc(params) {
  return request({
    url: "/admin/article/del",
    method: "delete",
    params,
  });
}

///增改
export function gonggaozen(data) {
  return request({
    url: "/admin/article/edit",
    method: "post",
    data,
  });
}

////任务类型

/////api/admin/task/type/list
export function renwuleixin() {
  return request({
    url: "/admin/task/type/list",
    method: "get",
  });
}

////任务列表
////api/admin/task/list

export function renwulb(params) {
  return request({
    url: "/admin/task/list",
    method: "get",
    params,
  });
}
////图片上传
////api
export function tupushang(data) {
  return request({
    url: "/admin/upload/img",
    method: "post",
    data,
  });
}
// 任务添加
// /api/admin/task/edit
export function renwutj(data) {
  return request({
    url: "/admin/task/edit",
    method: "post",
    data,
  });
}
// 合作方
// /api/admin/task/cooper/list
export function hezuofang() {
  return request({
    url: "/admin/task/cooper/list",
    method: "get",
  });
}
///时长录入
///api/admin/task/duration/record
export function shichangluru(data) {
  return request({
    url: "/admin/task/duration/record",
    method: "post",
    data,
  });
}
////单个人时长
////api/admin/task/duration/onetask/onememmber
////api/admin/task/duration/onetask
export function huodeshichang(params) {
  return request({
    url: "/admin/task/duration/onetask",
    method: "get",
    params,
  });
}
////时长提交
//api/admin/task/duration/record
export function jiaoshichang(data) {
  return request({
    url: "/admin/task/duration/record",
    method: "post",
    data,
  });
}
///组类型
/////api/admin/org/list
export function zulei() {
  return request({
    url: "/admin/org/list",
    method: "get",
  });
}
///api/admin/org/member/list
//获取任务
export function huoqurw(params) {
  return request({
    url: "/admin/org/member/list",
    method: "get",
    params,
  });
}

export function huozhiwu(params) {
  return request({
    url: "/admin/member/groupids",
    method: "get",
    params,
  });
}

////详情

//api/admin/member/detail
export function naxiangqing(params) {
  return request({
    url: "/admin/member/detail",
    method: "get",
    params,
    headers: {
      "content-type": "application/json",
    },
  });
}
// /api/admin/member/duration/onemember
// /api/admin/member/duration/onemember
export function gerenshichang(params) {
  return request({
    url: "/admin/member/duration/onemember",
    method: "get",
    params,
   
  });
}
// /api/admin/member/list
////api/admin/member/list
// 队员详情

export function duiyuanxq(params) {
  return request({
    url: "/admin/member/list",
    method: "get",
    params,
   
  });
}
/////api/admin/member/edit
////队员编辑
export function bianjidui(data) {
  return request({
    url: "/admin/member/edit",
    method: "post",
    data,
   
  });
}
//////api/admin/user/list
//管理员获得

export function guanliyuan(params) {
  return request({
    url: "/admin/user/list",
    method: "get",
    params,
   
  });
}
////api/admin/user/role/list
///用户校色
export function guanliyuanjiao() {
  return request({
    url: "/admin/user/role/list",
    method: "get",
    
   
  });
}
///////api/admin/user/role/edit
////用户修改
export function guanliyuangai(data) {
  return request({
    url: "/admin/user/role/edit",
    method: "post",
    data
   
  });
}



